package com.hyzx.qbasic.admin.domain.repository;

import com.github.pagehelper.PageInfo;
import com.hyzx.qbasic.admin.model.po.CmsContentPO;
import com.hyzx.qbasic.admin.model.po.CmsPagedContentPO;
import com.hyzx.qbasic.admin.model.vo.req.admin.GetCmsContentListReq;

import java.util.List;

/**
 * Created by 黄江华 on 2018/7/27
 */

public interface ICmsContentRepository {

    boolean addCmsContent(CmsContentPO cmsContent);

    CmsContentPO getCmsContentInfo(String contentId);

    PageInfo<CmsPagedContentPO> getPagedCmsContentList(GetCmsContentListReq req);

    boolean editCmsContent(CmsContentPO cmsContent);

    boolean publish(String contentId);

    Integer getContentStatus(String contentId);

    Integer getContentChannel(String contentId);

    boolean auditComplete(String contentId, int contentStatus);

    boolean deleteContent(List<String> contentIdList);

    boolean restoreContent(List<String> contentIdList);

    PageInfo<CmsPagedContentPO> getAuditList(int pageNum, int pageSize, int userId);
}
